
package com.lzh.seatrend.elasticsearch.entity;

import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;


/**
 * @Classname User
 * @Description TODO
 * @Date 2021/11/8 15:31
 * @Created by liuzihao
 */

@Document(indexName = "userindex")
public class User implements Serializable {

    /**
     *
     */

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */

    private Long id;
    /**
     * 姓名
     */

    private String name;


    /**
     * 年龄
     */

    private Integer age;


    /**
     * 描述
     */

    private String description;


    /**
     * 创建时间
     */

    private String createtm;

    public User() {
    }

    public User(Long id, String name, Integer age, String description, String createtm) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.description = description;
        this.createtm = createtm;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreatetm() {
        return createtm;
    }

    public void setCreatetm(String createtm) {
        this.createtm = createtm;
    }
}
